@d19n/youfibre-odin-sdk 1.0.302 → 1.0.303-beta.1
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/README.md +25 -1
- package/dist/actions-v2/CreateAffiliateCodeDto.d.ts +20 -74
- package/dist/actions-v2/CreateAffiliateCodeDto.js +1 -71
- package/dist/actions-v2/CreateDispatchAmcoWorkOrderDto.d.ts +1 -0
- package/dist/actions-v2/CreateDispatchAmcoWorkOrderFromOrderDto.d.ts +1 -0
- package/dist/actions-v2/MoveCashbackRewardToAwardedDto.d.ts +116 -0
- package/dist/actions-v2/MoveCashbackRewardToAwardedDto.js +81 -0
- package/dist/actions-v2/MoveCashbackRewardToFailedDto.d.ts +116 -0
- package/dist/actions-v2/MoveCashbackRewardToFailedDto.js +81 -0
- package/dist/actions-v2/MoveOrderReferralToCancelledDto.d.ts +116 -0
- package/dist/actions-v2/MoveOrderReferralToCancelledDto.js +81 -0
- package/dist/actions-v2/MoveOrderReferralToCompletedDto.d.ts +116 -0
- package/dist/actions-v2/MoveOrderReferralToCompletedDto.js +81 -0
- package/dist/actions-v2/MoveOrderReferralToNotQualifiedDto.d.ts +116 -0
- package/dist/actions-v2/MoveOrderReferralToNotQualifiedDto.js +81 -0
- package/dist/actions-v2/MoveOrderReferralToPendingActivationDto.d.ts +116 -0
- package/dist/actions-v2/MoveOrderReferralToPendingActivationDto.js +81 -0
- package/dist/actions-v2/MoveOrderReferralToPendingValidationDto.d.ts +116 -0
- package/dist/actions-v2/MoveOrderReferralToPendingValidationDto.js +81 -0
- package/dist/actions-v2/MoveOrderReferralToQualifiedDto.d.ts +116 -0
- package/dist/actions-v2/MoveOrderReferralToQualifiedDto.js +81 -0
- package/dist/entities-v2/Reward.d.ts +1 -1
- package/dist/entities-v2/Reward.js +1 -1
- package/dist/records-v2/AccountRecord.d.ts +2 -286
- package/dist/records-v2/AccountRecord.js +0 -418
- package/dist/records-v2/ActivityLogRecord.d.ts +1 -122
- package/dist/records-v2/ActivityLogRecord.js +0 -190
- package/dist/records-v2/ActivityRecord.d.ts +2 -235
- package/dist/records-v2/ActivityRecord.js +0 -354
- package/dist/records-v2/AddressRecord.d.ts +0 -301
- package/dist/records-v2/AddressRecord.js +0 -499
- package/dist/records-v2/AffiliateCodeRecord.d.ts +2 -103
- package/dist/records-v2/AffiliateCodeRecord.js +0 -157
- package/dist/records-v2/AppointmentRecord.d.ts +0 -121
- package/dist/records-v2/AppointmentRecord.js +0 -202
- package/dist/records-v2/BillingAdjustmentRecord.d.ts +0 -61
- package/dist/records-v2/BillingAdjustmentRecord.js +0 -103
- package/dist/records-v2/BillingRequestRecord.d.ts +2 -158
- package/dist/records-v2/BillingRequestRecord.js +0 -238
- package/dist/records-v2/BlockageA55Record.d.ts +2 -83
- package/dist/records-v2/BlockageA55Record.js +0 -124
- package/dist/records-v2/CallLegRecord.d.ts +1 -42
- package/dist/records-v2/CallLegRecord.js +0 -58
- package/dist/records-v2/CallRecord.d.ts +1 -142
- package/dist/records-v2/CallRecord.js +0 -223
- package/dist/records-v2/CampaignRecord.d.ts +2 -83
- package/dist/records-v2/CampaignRecord.js +0 -124
- package/dist/records-v2/CaseRecord.d.ts +2 -338
- package/dist/records-v2/CaseRecord.js +0 -535
- package/dist/records-v2/ChangeReasonRecord.d.ts +2 -151
- package/dist/records-v2/ChangeReasonRecord.js +0 -205
- package/dist/records-v2/ChurnRequestRecord.d.ts +1 -62
- package/dist/records-v2/ChurnRequestRecord.js +0 -91
- package/dist/records-v2/ContactRecord.d.ts +0 -440
- package/dist/records-v2/ContactRecord.js +0 -729
- package/dist/records-v2/ContractBuyOutRecord.d.ts +1 -142
- package/dist/records-v2/ContractBuyOutRecord.js +0 -223
- package/dist/records-v2/ConversationRecord.d.ts +1 -62
- package/dist/records-v2/ConversationRecord.js +0 -91
- package/dist/records-v2/CreditNoteRecord.d.ts +0 -61
- package/dist/records-v2/CreditNoteRecord.js +0 -103
- package/dist/records-v2/CrmDatasetRecord.d.ts +2 -191
- package/dist/records-v2/CrmDatasetRecord.js +0 -271
- package/dist/records-v2/CustomerDeviceAtaRecord.d.ts +0 -21
- package/dist/records-v2/CustomerDeviceAtaRecord.js +0 -37
- package/dist/records-v2/CustomerDeviceOntRecord.d.ts +0 -161
- package/dist/records-v2/CustomerDeviceOntRecord.js +0 -268
- package/dist/records-v2/CustomerDeviceRouterRecord.d.ts +0 -121
- package/dist/records-v2/CustomerDeviceRouterRecord.js +0 -202
- package/dist/records-v2/CustomerPhonePortingRecord.d.ts +0 -21
- package/dist/records-v2/CustomerPhonePortingRecord.js +0 -37
- package/dist/records-v2/DiscountRecord.d.ts +0 -101
- package/dist/records-v2/DiscountRecord.js +0 -169
- package/dist/records-v2/EmailRecord.d.ts +2 -118
- package/dist/records-v2/EmailRecord.js +0 -172
- package/dist/records-v2/EmailTemplateRecord.d.ts +1 -21
- package/dist/records-v2/EmailTemplateRecord.js +0 -21
- package/dist/records-v2/FieldServiceDispatchedProductRecord.d.ts +2 -135
- package/dist/records-v2/FieldServiceDispatchedProductRecord.js +0 -189
- package/dist/records-v2/FieldServiceProductRecord.d.ts +2 -115
- package/dist/records-v2/FieldServiceProductRecord.js +0 -156
- package/dist/records-v2/ImpersonationTrackerRecord.d.ts +1 -62
- package/dist/records-v2/ImpersonationTrackerRecord.js +0 -91
- package/dist/records-v2/InternalInstallAuditRecord.d.ts +2 -63
- package/dist/records-v2/InternalInstallAuditRecord.js +0 -91
- package/dist/records-v2/InvoiceRecord.d.ts +2 -319
- package/dist/records-v2/InvoiceRecord.js +0 -503
- package/dist/records-v2/KnowledgeArticleRecord.d.ts +2 -78
- package/dist/records-v2/KnowledgeArticleRecord.js +0 -106
- package/dist/records-v2/LeadRecord.d.ts +0 -241
- package/dist/records-v2/LeadRecord.js +0 -400
- package/dist/records-v2/MessageRecord.d.ts +2 -59
- package/dist/records-v2/MessageRecord.js +0 -74
- package/dist/records-v2/NetworkDeviceRecord.d.ts +2 -43
- package/dist/records-v2/NetworkDeviceRecord.js +0 -58
- package/dist/records-v2/NoteRecord.d.ts +1 -1061
- package/dist/records-v2/NoteRecord.js +0 -1740
- package/dist/records-v2/OfferRecord.d.ts +2 -154
- package/dist/records-v2/OfferRecord.js +0 -221
- package/dist/records-v2/OhAuditOfInstallationRecord.d.ts +2 -63
- package/dist/records-v2/OhAuditOfInstallationRecord.js +0 -91
- package/dist/records-v2/OhExternalAuditRecord.d.ts +2 -63
- package/dist/records-v2/OhExternalAuditRecord.js +0 -91
- package/dist/records-v2/OhInProgressAuditRecord.d.ts +2 -63
- package/dist/records-v2/OhInProgressAuditRecord.js +0 -91
- package/dist/records-v2/OhInstallationAuditRecord.d.ts +2 -63
- package/dist/records-v2/OhInstallationAuditRecord.js +0 -91
- package/dist/records-v2/OhRetroAuditRecord.d.ts +2 -63
- package/dist/records-v2/OhRetroAuditRecord.js +0 -91
- package/dist/records-v2/OneTouchSwitchRecord.d.ts +2 -235
- package/dist/records-v2/OneTouchSwitchRecord.js +0 -354
- package/dist/records-v2/OntReplacementApprovalRecord.d.ts +1 -62
- package/dist/records-v2/OntReplacementApprovalRecord.js +0 -91
- package/dist/records-v2/OrderCheckRecord.d.ts +0 -21
- package/dist/records-v2/OrderCheckRecord.js +0 -37
- package/dist/records-v2/OrderItemRecord.d.ts +0 -260
- package/dist/records-v2/OrderItemRecord.js +0 -432
- package/dist/records-v2/OrderRecord.d.ts +0 -520
- package/dist/records-v2/OrderRecord.js +0 -861
- package/dist/records-v2/OutageRecord.d.ts +1 -42
- package/dist/records-v2/OutageRecord.js +0 -58
- package/dist/records-v2/OverlayRealA55Record.d.ts +2 -63
- package/dist/records-v2/OverlayRealA55Record.js +0 -91
- package/dist/records-v2/PICRequestRecord.d.ts +1 -62
- package/dist/records-v2/PICRequestRecord.js +0 -91
- package/dist/records-v2/PaymentMethodRecord.d.ts +0 -101
- package/dist/records-v2/PaymentMethodRecord.js +0 -169
- package/dist/records-v2/PaymentMethodRefundRecord.d.ts +0 -161
- package/dist/records-v2/PaymentMethodRefundRecord.js +0 -268
- package/dist/records-v2/PaymentRecord.d.ts +1 -82
- package/dist/records-v2/PaymentRecord.js +0 -124
- package/dist/records-v2/PermissionToFailRecord.d.ts +0 -61
- package/dist/records-v2/PermissionToFailRecord.js +0 -103
- package/dist/records-v2/PgAccountValidationRecord.d.ts +1 -21
- package/dist/records-v2/PgAccountValidationRecord.js +0 -21
- package/dist/records-v2/PgContactRecord.d.ts +1 -62
- package/dist/records-v2/PgContactRecord.js +0 -91
- package/dist/records-v2/PgDirectDebitFileRecord.d.ts +2 -75
- package/dist/records-v2/PgDirectDebitFileRecord.js +0 -90
- package/dist/records-v2/PgDisputeRecord.d.ts +1 -62
- package/dist/records-v2/PgDisputeRecord.js +0 -91
- package/dist/records-v2/PgFileAllocationRecord.d.ts +2 -115
- package/dist/records-v2/PgFileAllocationRecord.js +0 -156
- package/dist/records-v2/PgLogRecord.d.ts +1 -21
- package/dist/records-v2/PgLogRecord.js +0 -21
- package/dist/records-v2/PgPaymentMethodRecord.d.ts +1 -102
- package/dist/records-v2/PgPaymentMethodRecord.js +0 -157
- package/dist/records-v2/PgSortCodeSubstitutionRecord.d.ts +1 -21
- package/dist/records-v2/PgSortCodeSubstitutionRecord.js +0 -21
- package/dist/records-v2/PgTransactionRecord.d.ts +2 -135
- package/dist/records-v2/PgTransactionRecord.js +0 -189
- package/dist/records-v2/PgVocalinkRecord.d.ts +1 -21
- package/dist/records-v2/PgVocalinkRecord.js +0 -21
- package/dist/records-v2/PgWebhookAttemptRecord.d.ts +1 -42
- package/dist/records-v2/PgWebhookAttemptRecord.js +0 -58
- package/dist/records-v2/PgWebhookRecord.d.ts +1 -122
- package/dist/records-v2/PgWebhookRecord.js +0 -190
- package/dist/records-v2/PriceBookRecord.d.ts +0 -21
- package/dist/records-v2/PriceBookRecord.js +0 -37
- package/dist/records-v2/ProductRecord.d.ts +2 -242
- package/dist/records-v2/ProductRecord.js +0 -335
- package/dist/records-v2/PushNotificationRecord.d.ts +1 -42
- package/dist/records-v2/PushNotificationRecord.js +0 -58
- package/dist/records-v2/ReferralRecord.d.ts +146 -103
- package/dist/records-v2/ReferralRecord.js +231 -157
- package/dist/records-v2/RemediationOutcomeFormRecord.d.ts +2 -63
- package/dist/records-v2/RemediationOutcomeFormRecord.js +0 -91
- package/dist/records-v2/RemediationRequiredReasonRecord.d.ts +2 -83
- package/dist/records-v2/RemediationRequiredReasonRecord.js +0 -124
- package/dist/records-v2/ReturnsRecord.d.ts +1 -62
- package/dist/records-v2/ReturnsRecord.js +0 -91
- package/dist/records-v2/RewardRecord.d.ts +50 -103
- package/dist/records-v2/RewardRecord.js +79 -157
- package/dist/records-v2/SalesTerritoryRecord.d.ts +2 -79
- package/dist/records-v2/SalesTerritoryRecord.js +0 -107
- package/dist/records-v2/ScheduleSlotRecord.d.ts +1 -42
- package/dist/records-v2/ScheduleSlotRecord.js +0 -58
- package/dist/records-v2/ServiceAppointmentConfigRecord.d.ts +2 -287
- package/dist/records-v2/ServiceAppointmentConfigRecord.js +0 -367
- package/dist/records-v2/ServiceAppointmentRecord.d.ts +0 -61
- package/dist/records-v2/ServiceAppointmentRecord.js +0 -103
- package/dist/records-v2/ServiceRecord.d.ts +0 -40
- package/dist/records-v2/ServiceRecord.js +0 -69
- package/dist/records-v2/ServiceVisitAuditRecord.d.ts +2 -63
- package/dist/records-v2/ServiceVisitAuditRecord.js +0 -91
- package/dist/records-v2/SiteSpecificRiskAssessmentOutcomeFormRecord.d.ts +2 -63
- package/dist/records-v2/SiteSpecificRiskAssessmentOutcomeFormRecord.js +0 -91
- package/dist/records-v2/SweeperMaintenanceAuditRecord.d.ts +2 -63
- package/dist/records-v2/SweeperMaintenanceAuditRecord.js +0 -91
- package/dist/records-v2/TeamRecord.d.ts +0 -81
- package/dist/records-v2/TeamRecord.js +0 -136
- package/dist/records-v2/TimeSlotRecord.d.ts +0 -21
- package/dist/records-v2/TimeSlotRecord.js +0 -37
- package/dist/records-v2/TransactionRecord.d.ts +1 -161
- package/dist/records-v2/TransactionRecord.js +0 -255
- package/dist/records-v2/TwilioUserUpdateRecord.d.ts +1 -42
- package/dist/records-v2/TwilioUserUpdateRecord.js +0 -58
- package/dist/records-v2/UgAuditOfInstallationRecord.d.ts +2 -63
- package/dist/records-v2/UgAuditOfInstallationRecord.js +0 -91
- package/dist/records-v2/UgExternalAuditRecord.d.ts +2 -63
- package/dist/records-v2/UgExternalAuditRecord.js +0 -91
- package/dist/records-v2/UgInProgressAuditRecord.d.ts +2 -63
- package/dist/records-v2/UgInProgressAuditRecord.js +0 -91
- package/dist/records-v2/UgInstallationAuditRecord.d.ts +2 -63
- package/dist/records-v2/UgInstallationAuditRecord.js +0 -91
- package/dist/records-v2/UgRetroAuditRecord.d.ts +2 -63
- package/dist/records-v2/UgRetroAuditRecord.js +0 -91
- package/dist/records-v2/UserRecord.d.ts +0 -321
- package/dist/records-v2/UserRecord.js +0 -532
- package/dist/records-v2/VisitRecord.d.ts +0 -101
- package/dist/records-v2/VisitRecord.js +0 -169
- package/dist/records-v2/VoiceConfigurationRecord.d.ts +0 -21
- package/dist/records-v2/VoiceConfigurationRecord.js +0 -37
- package/dist/records-v2/WayleaveAuditRecord.d.ts +2 -63
- package/dist/records-v2/WayleaveAuditRecord.js +0 -91
- package/dist/records-v2/WorkOrderRecord.d.ts +2 -1146
- package/dist/records-v2/WorkOrderRecord.js +0 -1733
- package/dist/records-v2/WorkOrderStatusUpdateRecord.d.ts +2 -75
- package/dist/records-v2/WorkOrderStatusUpdateRecord.js +0 -90
- package/dist/records-v2/YfFieldServiceVisitRecord.d.ts +2 -63
- package/dist/records-v2/YfFieldServiceVisitRecord.js +0 -91
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -346,7 +346,7 @@ This SDK includes **158** entities across **12** modules.
|
|
|
346
346
|
|
|
347
347
|
## Actions
|
|
348
348
|
|
|
349
|
-
This SDK includes **
|
|
349
|
+
This SDK includes **489** actions.
|
|
350
350
|
|
|
351
351
|
### Action Types
|
|
352
352
|
|
|
@@ -1044,6 +1044,12 @@ This SDK includes **481** actions.
|
|
|
1044
1044
|
| Action | Type | Event |
|
|
1045
1045
|
|--------|------|-------|
|
|
1046
1046
|
| `CreateCashbackReward` | CREATE | CrmModule.Reward.Create.CreateCashbackReward |
|
|
1047
|
+
| `MoveCashbackRewardToAwarded` | STAGE_TRANSITION | CrmModule.Reward.Action.MoveCashbackRewardToAwarded |
|
|
1048
|
+
| `MoveCashbackRewardToFailed` | STAGE_TRANSITION | CrmModule.Reward.Action.MoveCashbackRewardToFailed |
|
|
1049
|
+
|
|
1050
|
+
**MoveCashbackRewardToAwarded Target Stages:** `CashBackFlowStagePending`
|
|
1051
|
+
|
|
1052
|
+
**MoveCashbackRewardToFailed Target Stages:** `CashBackFlowStageFailed`
|
|
1047
1053
|
|
|
1048
1054
|
#### Config
|
|
1049
1055
|
|
|
@@ -1187,6 +1193,24 @@ This SDK includes **481** actions.
|
|
|
1187
1193
|
| Action | Type | Event |
|
|
1188
1194
|
|--------|------|-------|
|
|
1189
1195
|
| `CreateOrderReferral` | CREATE | CrmModule.Referral.Create.CreateOrderReferral |
|
|
1196
|
+
| `MoveOrderReferralToCancelled` | STAGE_TRANSITION | CrmModule.Referral.Action.MoveOrderReferralToCancelled |
|
|
1197
|
+
| `MoveOrderReferralToCompleted` | STAGE_TRANSITION | CrmModule.Referral.Action.MoveOrderReferralToCompleted |
|
|
1198
|
+
| `MoveOrderReferralToNotQualified` | STAGE_TRANSITION | CrmModule.Referral.Action.MoveOrderReferralToNotQualified |
|
|
1199
|
+
| `MoveOrderReferralToPendingActivation` | STAGE_TRANSITION | CrmModule.Referral.Action.MoveOrderReferralToPendingActivation |
|
|
1200
|
+
| `MoveOrderReferralToPendingValidation` | STAGE_TRANSITION | CrmModule.Referral.Action.MoveOrderReferralToPendingValidation |
|
|
1201
|
+
| `MoveOrderReferralToQualified` | STAGE_TRANSITION | CrmModule.Referral.Action.MoveOrderReferralToQualified |
|
|
1202
|
+
|
|
1203
|
+
**MoveOrderReferralToCancelled Target Stages:** `OrderFlowStageCancelled`
|
|
1204
|
+
|
|
1205
|
+
**MoveOrderReferralToCompleted Target Stages:** `OrderFlowStageCompleted`
|
|
1206
|
+
|
|
1207
|
+
**MoveOrderReferralToNotQualified Target Stages:** `OrderFlowStageNotQualified`
|
|
1208
|
+
|
|
1209
|
+
**MoveOrderReferralToPendingActivation Target Stages:** `OrderFlowStagePendingActivation`
|
|
1210
|
+
|
|
1211
|
+
**MoveOrderReferralToPendingValidation Target Stages:** `OrderFlowStagePendingValidation`
|
|
1212
|
+
|
|
1213
|
+
**MoveOrderReferralToQualified Target Stages:** `OrderFlowStageQualified`
|
|
1190
1214
|
|
|
1191
1215
|
#### PaymentMethod
|
|
1192
1216
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*
|
|
11
11
|
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
12
12
|
*/
|
|
13
|
-
import {
|
|
13
|
+
import { OdinRecordCreateDto, OdinRecordCreatedEvent } from '@d19n/odin-types/dist/core';
|
|
14
14
|
/**
|
|
15
15
|
* RabbitMQ message payload for CreateAffiliateCode created events
|
|
16
16
|
*
|
|
@@ -21,74 +21,34 @@ export interface CreateAffiliateCodeMessage extends OdinRecordCreatedEvent<Creat
|
|
|
21
21
|
/**
|
|
22
22
|
* Properties for CreateAffiliateCode action
|
|
23
23
|
*
|
|
24
|
-
* @property Required fields:
|
|
25
|
-
* @property Optional fields:
|
|
24
|
+
* @property Required fields: 3
|
|
25
|
+
* @property Optional fields: 0
|
|
26
26
|
*/
|
|
27
27
|
export interface CreateAffiliateCodeProperties {
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* CampaignId
|
|
30
30
|
*
|
|
31
|
-
*
|
|
32
|
-
* @type {
|
|
33
|
-
|
|
34
|
-
Code?: string | null;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Builder for CreateAffiliateCode action
|
|
38
|
-
*
|
|
39
|
-
* Provides fluent API for adding associations before executing the action.
|
|
40
|
-
* Use .link*() methods to add associations, then call .execute() to run.
|
|
41
|
-
*
|
|
42
|
-
* @example
|
|
43
|
-
* ```typescript
|
|
44
|
-
* await record.createAffiliateCode({ ...properties })
|
|
45
|
-
* .linkCampaignAffiliateCodes({ id: '...', entity: '...' })
|
|
46
|
-
* .linkContactAffiliateCodes({ id: '...', entity: '...' })
|
|
47
|
-
* .execute();
|
|
48
|
-
* ```
|
|
49
|
-
*/
|
|
50
|
-
export declare class CreateAffiliateCodeBuilder {
|
|
51
|
-
private _associations;
|
|
52
|
-
private _properties;
|
|
53
|
-
private _pendingLinks;
|
|
54
|
-
private _options?;
|
|
55
|
-
constructor(properties: CreateAffiliateCodeProperties, pendingLinks: OdinRecordLinkDto[], options?: {
|
|
56
|
-
journeyId?: string;
|
|
57
|
-
stageKey?: string;
|
|
58
|
-
});
|
|
59
|
-
/**
|
|
60
|
-
* Link CampaignAffiliateCodes
|
|
61
|
-
* @schemaAssociationId 861d3320-5071-4f9e-90c1-fe42fb4a85f0
|
|
62
|
-
* @param target - The record to link
|
|
63
|
-
* @returns this (for method chaining)
|
|
31
|
+
* Campaign this affiliate code belongs to
|
|
32
|
+
* @type {LOOKUP}
|
|
33
|
+
* @required
|
|
64
34
|
*/
|
|
65
|
-
|
|
66
|
-
id: string;
|
|
67
|
-
entity: string;
|
|
68
|
-
}): this;
|
|
35
|
+
CampaignId: string;
|
|
69
36
|
/**
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
* @
|
|
37
|
+
* ContactId
|
|
38
|
+
*
|
|
39
|
+
* Contact who owns this affiliate code
|
|
40
|
+
* @type {LOOKUP}
|
|
41
|
+
* @required
|
|
74
42
|
*/
|
|
75
|
-
|
|
76
|
-
id: string;
|
|
77
|
-
entity: string;
|
|
78
|
-
}): this;
|
|
43
|
+
ContactId: string;
|
|
79
44
|
/**
|
|
80
|
-
*
|
|
81
|
-
*
|
|
45
|
+
* Code
|
|
46
|
+
*
|
|
47
|
+
* Unique referral code
|
|
48
|
+
* @type {TEXT}
|
|
49
|
+
* @required
|
|
82
50
|
*/
|
|
83
|
-
|
|
84
|
-
entity: string;
|
|
85
|
-
type: string | undefined;
|
|
86
|
-
actionName: string;
|
|
87
|
-
properties: CreateAffiliateCodeProperties;
|
|
88
|
-
associations?: OdinRecordLinkDto[];
|
|
89
|
-
journeyId?: string;
|
|
90
|
-
stageKey?: string;
|
|
91
|
-
};
|
|
51
|
+
Code: string;
|
|
92
52
|
}
|
|
93
53
|
/**
|
|
94
54
|
* Create Code
|
|
@@ -115,20 +75,6 @@ export declare class CreateAffiliateCodeDto extends OdinRecordCreateDto<CreateAf
|
|
|
115
75
|
static readonly STEP_SCHEMA_ID = "2c463b18-5bbb-4943-9209-04f7d584515a";
|
|
116
76
|
static readonly STEP_SCHEMA_ACTION_ID = "02eee383-0dbc-4713-b63d-35b6f904d6b5";
|
|
117
77
|
static readonly AUTO_LINK_PARENT = true;
|
|
118
|
-
static readonly HAS_ASSOCIATIONS = true;
|
|
119
|
-
static readonly HAS_REQUIRED_ASSOCIATIONS = false;
|
|
120
|
-
static readonly BUILDER_CLASS = "CreateAffiliateCodeBuilder";
|
|
121
|
-
static readonly ASSOCIATION_FIELDS: readonly [{
|
|
122
|
-
readonly name: "CampaignAffiliateCodes";
|
|
123
|
-
readonly methodName: "linkCampaignAffiliateCodes";
|
|
124
|
-
readonly required: false;
|
|
125
|
-
readonly schemaAssociationId: "861d3320-5071-4f9e-90c1-fe42fb4a85f0";
|
|
126
|
-
}, {
|
|
127
|
-
readonly name: "ContactAffiliateCodes";
|
|
128
|
-
readonly methodName: "linkContactAffiliateCodes";
|
|
129
|
-
readonly required: false;
|
|
130
|
-
readonly schemaAssociationId: "097e54b9-7194-447e-89f3-d610122cd03b";
|
|
131
|
-
}];
|
|
132
78
|
readonly actionName: string;
|
|
133
79
|
readonly schemaActionId: string;
|
|
134
80
|
readonly entity: string;
|
|
@@ -12,74 +12,8 @@
|
|
|
12
12
|
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
13
|
*/
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.CreateAffiliateCodeDto =
|
|
15
|
+
exports.CreateAffiliateCodeDto = void 0;
|
|
16
16
|
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
|
-
/**
|
|
18
|
-
* Builder for CreateAffiliateCode action
|
|
19
|
-
*
|
|
20
|
-
* Provides fluent API for adding associations before executing the action.
|
|
21
|
-
* Use .link*() methods to add associations, then call .execute() to run.
|
|
22
|
-
*
|
|
23
|
-
* @example
|
|
24
|
-
* ```typescript
|
|
25
|
-
* await record.createAffiliateCode({ ...properties })
|
|
26
|
-
* .linkCampaignAffiliateCodes({ id: '...', entity: '...' })
|
|
27
|
-
* .linkContactAffiliateCodes({ id: '...', entity: '...' })
|
|
28
|
-
* .execute();
|
|
29
|
-
* ```
|
|
30
|
-
*/
|
|
31
|
-
class CreateAffiliateCodeBuilder {
|
|
32
|
-
constructor(properties, pendingLinks, options) {
|
|
33
|
-
this._associations = [];
|
|
34
|
-
this._properties = properties;
|
|
35
|
-
this._pendingLinks = pendingLinks;
|
|
36
|
-
this._options = options;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Link CampaignAffiliateCodes
|
|
40
|
-
* @schemaAssociationId 861d3320-5071-4f9e-90c1-fe42fb4a85f0
|
|
41
|
-
* @param target - The record to link
|
|
42
|
-
* @returns this (for method chaining)
|
|
43
|
-
*/
|
|
44
|
-
linkCampaignAffiliateCodes(target) {
|
|
45
|
-
this._associations.push(new core_1.OdinRecordLinkDto({
|
|
46
|
-
id: target.id,
|
|
47
|
-
entity: 'entity' in target ? target.entity : target.entity,
|
|
48
|
-
}));
|
|
49
|
-
return this;
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Link ContactAffiliateCodes
|
|
53
|
-
* @schemaAssociationId 097e54b9-7194-447e-89f3-d610122cd03b
|
|
54
|
-
* @param target - The record to link
|
|
55
|
-
* @returns this (for method chaining)
|
|
56
|
-
*/
|
|
57
|
-
linkContactAffiliateCodes(target) {
|
|
58
|
-
this._associations.push(new core_1.OdinRecordLinkDto({
|
|
59
|
-
id: target.id,
|
|
60
|
-
entity: 'entity' in target ? target.entity : target.entity,
|
|
61
|
-
}));
|
|
62
|
-
return this;
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* Get the action payload without executing
|
|
66
|
-
* @returns The action data that would be sent
|
|
67
|
-
*/
|
|
68
|
-
getData() {
|
|
69
|
-
var _a, _b;
|
|
70
|
-
const allAssociations = [...this._associations, ...this._pendingLinks];
|
|
71
|
-
return {
|
|
72
|
-
entity: 'CrmModule:AffiliateCode',
|
|
73
|
-
type: undefined,
|
|
74
|
-
actionName: 'CreateAffiliateCode',
|
|
75
|
-
properties: this._properties,
|
|
76
|
-
associations: allAssociations.length > 0 ? allAssociations : undefined,
|
|
77
|
-
journeyId: (_a = this._options) === null || _a === void 0 ? void 0 : _a.journeyId,
|
|
78
|
-
stageKey: (_b = this._options) === null || _b === void 0 ? void 0 : _b.stageKey,
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
exports.CreateAffiliateCodeBuilder = CreateAffiliateCodeBuilder;
|
|
83
17
|
/**
|
|
84
18
|
* Create Code
|
|
85
19
|
*
|
|
@@ -118,7 +52,3 @@ CreateAffiliateCodeDto.STEP_ENTITY = 'CrmModule:AffiliateCode';
|
|
|
118
52
|
CreateAffiliateCodeDto.STEP_SCHEMA_ID = '2c463b18-5bbb-4943-9209-04f7d584515a';
|
|
119
53
|
CreateAffiliateCodeDto.STEP_SCHEMA_ACTION_ID = '02eee383-0dbc-4713-b63d-35b6f904d6b5';
|
|
120
54
|
CreateAffiliateCodeDto.AUTO_LINK_PARENT = true;
|
|
121
|
-
CreateAffiliateCodeDto.HAS_ASSOCIATIONS = true;
|
|
122
|
-
CreateAffiliateCodeDto.HAS_REQUIRED_ASSOCIATIONS = false;
|
|
123
|
-
CreateAffiliateCodeDto.BUILDER_CLASS = 'CreateAffiliateCodeBuilder';
|
|
124
|
-
CreateAffiliateCodeDto.ASSOCIATION_FIELDS = [{ "name": "CampaignAffiliateCodes", "methodName": "linkCampaignAffiliateCodes", "required": false, "schemaAssociationId": "861d3320-5071-4f9e-90c1-fe42fb4a85f0" }, { "name": "ContactAffiliateCodes", "methodName": "linkContactAffiliateCodes", "required": false, "schemaAssociationId": "097e54b9-7194-447e-89f3-d610122cd03b" }];
|
|
@@ -32,6 +32,7 @@ export interface CreateDispatchAmcoWorkOrderProperties {
|
|
|
32
32
|
* PendingAmcoOrder
|
|
33
33
|
* @type {BOOLEAN}
|
|
34
34
|
* @default Dynamic: {source_record_properties_PendingAmcoDispatch}
|
|
35
|
+
* @hidden This field is not visible in the UI
|
|
35
36
|
*/
|
|
36
37
|
PendingAmcoOrder?: boolean | null;
|
|
37
38
|
/**
|
|
@@ -24,6 +24,7 @@ export interface CreateDispatchAmcoWorkOrderProperties {
|
|
|
24
24
|
* PendingAmcoOrder
|
|
25
25
|
* @type {BOOLEAN}
|
|
26
26
|
* @default Dynamic: {source_record_properties_PendingAmcoDispatch}
|
|
27
|
+
* @hidden This field is not visible in the UI
|
|
27
28
|
*/
|
|
28
29
|
PendingAmcoOrder?: boolean | null;
|
|
29
30
|
/**
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MoveCashbackRewardToAwarded Action DTO
|
|
3
|
+
*
|
|
4
|
+
* Mark cashback reward as awarded
|
|
5
|
+
*
|
|
6
|
+
* @module CrmModule
|
|
7
|
+
* @entity Reward
|
|
8
|
+
* @entityType CASHBACK
|
|
9
|
+
* @actionKey MoveCashbackRewardToAwarded
|
|
10
|
+
* @event CrmModule.CashbackReward.TransitionToAwarded.MoveCashbackRewardToAwarded
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
|
|
15
|
+
declare type StepClassMap = {};
|
|
16
|
+
/**
|
|
17
|
+
* Link definition for connecting steps in MoveCashbackRewardToAwarded
|
|
18
|
+
*/
|
|
19
|
+
export interface MoveCashbackRewardToAwardedStepLink {
|
|
20
|
+
/**
|
|
21
|
+
* The stepKey of the target step to link TO
|
|
22
|
+
* Must reference another step's stepKey in the same flow
|
|
23
|
+
*/
|
|
24
|
+
stepKey: string;
|
|
25
|
+
/**
|
|
26
|
+
* The schema association ID (UUID) defining the relationship
|
|
27
|
+
* Use the association.id from the schema association definition
|
|
28
|
+
* @example "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
|
|
29
|
+
*/
|
|
30
|
+
schemaAssociationId: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Step definition with linking metadata for MoveCashbackRewardToAwarded
|
|
34
|
+
*/
|
|
35
|
+
export interface MoveCashbackRewardToAwardedStepDefinition {
|
|
36
|
+
/** Unique identifier for this step */
|
|
37
|
+
stepKey: string;
|
|
38
|
+
/** The DTO class name for this step */
|
|
39
|
+
dtoClass: string;
|
|
40
|
+
/** The entity this step creates (Module:Entity format) */
|
|
41
|
+
entity: string;
|
|
42
|
+
/** Links to create after this step executes */
|
|
43
|
+
linksTo: MoveCashbackRewardToAwardedStepLink[] | null;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Type-safe step keys for MoveCashbackRewardToAwarded
|
|
47
|
+
*/
|
|
48
|
+
export declare const MoveCashbackRewardToAwardedSteps: {
|
|
49
|
+
readonly step_1: "step_1";
|
|
50
|
+
};
|
|
51
|
+
export declare type MoveCashbackRewardToAwardedStepKey = typeof MoveCashbackRewardToAwardedSteps[keyof typeof MoveCashbackRewardToAwardedSteps];
|
|
52
|
+
/**
|
|
53
|
+
* RabbitMQ message payload for MoveCashbackRewardToAwarded step flow events
|
|
54
|
+
*
|
|
55
|
+
* @event CrmModule.Reward.Action.MoveCashbackRewardToAwarded
|
|
56
|
+
*/
|
|
57
|
+
export interface MoveCashbackRewardToAwardedMessage extends OdinRecordUpdatedEvent<MoveCashbackRewardToAwardedDto, {}> {
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Properties for MoveCashbackRewardToAwarded action
|
|
61
|
+
*
|
|
62
|
+
*/
|
|
63
|
+
export interface MoveCashbackRewardToAwardedProperties {
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* MoveCashbackRewardToAwarded
|
|
67
|
+
*
|
|
68
|
+
* Mark cashback reward as awarded
|
|
69
|
+
*
|
|
70
|
+
* @module CrmModule
|
|
71
|
+
* @entity Reward
|
|
72
|
+
* @entityType CASHBACK (CASHBACK)
|
|
73
|
+
* @targetStages CashBackFlowStagePending
|
|
74
|
+
* @event CrmModule.Reward.Action.MoveCashbackRewardToAwarded
|
|
75
|
+
* @permission schema.action.movecashbackrewardtoawarded.trigger
|
|
76
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
77
|
+
*/
|
|
78
|
+
export declare class MoveCashbackRewardToAwardedDto extends OdinRecordUpdateDto<Record<string, any>> {
|
|
79
|
+
/** Used by SDK generators to identify action type */
|
|
80
|
+
static readonly ACTION_TYPE = "UPDATE";
|
|
81
|
+
static readonly ACTION_KEY = "MoveCashbackRewardToAwarded";
|
|
82
|
+
static readonly MODULE_NAME = "CrmModule";
|
|
83
|
+
static readonly ENTITIES: string[];
|
|
84
|
+
static readonly ENTITY_TYPE = "CASHBACK";
|
|
85
|
+
static readonly EVENT_NAME = "CrmModule.Reward.Action.MoveCashbackRewardToAwarded";
|
|
86
|
+
static readonly SCHEMA_ACTION_ID = "f77ea026-72d8-4c0f-9c10-fc00b7d4318f";
|
|
87
|
+
static readonly PERMISSION = "schema.action.movecashbackrewardtoawarded.trigger";
|
|
88
|
+
static readonly TARGET_STAGES: readonly ["CashBackFlowStagePending"];
|
|
89
|
+
static readonly IS_STAGE_TRANSITION = false;
|
|
90
|
+
static readonly IS_MULTI_STEP_FLOW = false;
|
|
91
|
+
static readonly HAS_STEP_LINKS = false;
|
|
92
|
+
/**
|
|
93
|
+
* Step definitions with linking metadata
|
|
94
|
+
* Used by SDK and backend for auto-linking after step execution
|
|
95
|
+
*/
|
|
96
|
+
static readonly stepDefinitions: MoveCashbackRewardToAwardedStepDefinition[];
|
|
97
|
+
/** Type-safe step key accessor */
|
|
98
|
+
static readonly Steps: {
|
|
99
|
+
readonly step_1: "step_1";
|
|
100
|
+
};
|
|
101
|
+
readonly actionName: string;
|
|
102
|
+
readonly schemaActionId: string;
|
|
103
|
+
readonly entity: string;
|
|
104
|
+
readonly stageKey: string;
|
|
105
|
+
constructor(record: OdinRecord<any> | {
|
|
106
|
+
id: string;
|
|
107
|
+
entity: string;
|
|
108
|
+
type?: string;
|
|
109
|
+
}, options?: {
|
|
110
|
+
journeyId?: string;
|
|
111
|
+
});
|
|
112
|
+
/** Step classes that can be used with this action */
|
|
113
|
+
static readonly stepClasses: readonly [];
|
|
114
|
+
steps: StepClassMap[(typeof MoveCashbackRewardToAwardedDto.stepClasses)[number]][];
|
|
115
|
+
}
|
|
116
|
+
export {};
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* MoveCashbackRewardToAwarded Action DTO
|
|
4
|
+
*
|
|
5
|
+
* Mark cashback reward as awarded
|
|
6
|
+
*
|
|
7
|
+
* @module CrmModule
|
|
8
|
+
* @entity Reward
|
|
9
|
+
* @entityType CASHBACK
|
|
10
|
+
* @actionKey MoveCashbackRewardToAwarded
|
|
11
|
+
* @event CrmModule.CashbackReward.TransitionToAwarded.MoveCashbackRewardToAwarded
|
|
12
|
+
*
|
|
13
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.MoveCashbackRewardToAwardedDto = exports.MoveCashbackRewardToAwardedSteps = void 0;
|
|
17
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
18
|
+
/**
|
|
19
|
+
* Type-safe step keys for MoveCashbackRewardToAwarded
|
|
20
|
+
*/
|
|
21
|
+
exports.MoveCashbackRewardToAwardedSteps = {
|
|
22
|
+
step_1: 'step_1',
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* MoveCashbackRewardToAwarded
|
|
26
|
+
*
|
|
27
|
+
* Mark cashback reward as awarded
|
|
28
|
+
*
|
|
29
|
+
* @module CrmModule
|
|
30
|
+
* @entity Reward
|
|
31
|
+
* @entityType CASHBACK (CASHBACK)
|
|
32
|
+
* @targetStages CashBackFlowStagePending
|
|
33
|
+
* @event CrmModule.Reward.Action.MoveCashbackRewardToAwarded
|
|
34
|
+
* @permission schema.action.movecashbackrewardtoawarded.trigger
|
|
35
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
36
|
+
*/
|
|
37
|
+
class MoveCashbackRewardToAwardedDto extends core_1.OdinRecordUpdateDto {
|
|
38
|
+
constructor(record, options) {
|
|
39
|
+
super({
|
|
40
|
+
id: record.id,
|
|
41
|
+
entity: record.entity,
|
|
42
|
+
type: record.type,
|
|
43
|
+
properties: {},
|
|
44
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
45
|
+
});
|
|
46
|
+
this.actionName = 'MoveCashbackRewardToAwarded';
|
|
47
|
+
this.schemaActionId = 'f77ea026-72d8-4c0f-9c10-fc00b7d4318f';
|
|
48
|
+
this.entity = 'CrmModule:Reward';
|
|
49
|
+
this.stageKey = 'CashBackFlowStagePending';
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.MoveCashbackRewardToAwardedDto = MoveCashbackRewardToAwardedDto;
|
|
53
|
+
/** Used by SDK generators to identify action type */
|
|
54
|
+
MoveCashbackRewardToAwardedDto.ACTION_TYPE = 'UPDATE';
|
|
55
|
+
MoveCashbackRewardToAwardedDto.ACTION_KEY = 'MoveCashbackRewardToAwarded';
|
|
56
|
+
MoveCashbackRewardToAwardedDto.MODULE_NAME = 'CrmModule';
|
|
57
|
+
MoveCashbackRewardToAwardedDto.ENTITIES = ['Reward'];
|
|
58
|
+
MoveCashbackRewardToAwardedDto.ENTITY_TYPE = 'CASHBACK';
|
|
59
|
+
MoveCashbackRewardToAwardedDto.EVENT_NAME = 'CrmModule.Reward.Action.MoveCashbackRewardToAwarded';
|
|
60
|
+
MoveCashbackRewardToAwardedDto.SCHEMA_ACTION_ID = 'f77ea026-72d8-4c0f-9c10-fc00b7d4318f';
|
|
61
|
+
MoveCashbackRewardToAwardedDto.PERMISSION = 'schema.action.movecashbackrewardtoawarded.trigger';
|
|
62
|
+
MoveCashbackRewardToAwardedDto.TARGET_STAGES = ['CashBackFlowStagePending'];
|
|
63
|
+
MoveCashbackRewardToAwardedDto.IS_STAGE_TRANSITION = false;
|
|
64
|
+
MoveCashbackRewardToAwardedDto.IS_MULTI_STEP_FLOW = false;
|
|
65
|
+
MoveCashbackRewardToAwardedDto.HAS_STEP_LINKS = false;
|
|
66
|
+
/**
|
|
67
|
+
* Step definitions with linking metadata
|
|
68
|
+
* Used by SDK and backend for auto-linking after step execution
|
|
69
|
+
*/
|
|
70
|
+
MoveCashbackRewardToAwardedDto.stepDefinitions = [
|
|
71
|
+
{
|
|
72
|
+
stepKey: 'step_1',
|
|
73
|
+
dtoClass: 'unknown',
|
|
74
|
+
entity: 'unknown',
|
|
75
|
+
linksTo: null
|
|
76
|
+
}
|
|
77
|
+
];
|
|
78
|
+
/** Type-safe step key accessor */
|
|
79
|
+
MoveCashbackRewardToAwardedDto.Steps = exports.MoveCashbackRewardToAwardedSteps;
|
|
80
|
+
/** Step classes that can be used with this action */
|
|
81
|
+
MoveCashbackRewardToAwardedDto.stepClasses = [];
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MoveCashbackRewardToFailed Action DTO
|
|
3
|
+
*
|
|
4
|
+
* Mark cashback reward as failed
|
|
5
|
+
*
|
|
6
|
+
* @module CrmModule
|
|
7
|
+
* @entity Reward
|
|
8
|
+
* @entityType CASHBACK
|
|
9
|
+
* @actionKey MoveCashbackRewardToFailed
|
|
10
|
+
* @event CrmModule.CashbackReward.TransitionToFailed.MoveCashbackRewardToFailed
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
|
|
15
|
+
declare type StepClassMap = {};
|
|
16
|
+
/**
|
|
17
|
+
* Link definition for connecting steps in MoveCashbackRewardToFailed
|
|
18
|
+
*/
|
|
19
|
+
export interface MoveCashbackRewardToFailedStepLink {
|
|
20
|
+
/**
|
|
21
|
+
* The stepKey of the target step to link TO
|
|
22
|
+
* Must reference another step's stepKey in the same flow
|
|
23
|
+
*/
|
|
24
|
+
stepKey: string;
|
|
25
|
+
/**
|
|
26
|
+
* The schema association ID (UUID) defining the relationship
|
|
27
|
+
* Use the association.id from the schema association definition
|
|
28
|
+
* @example "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
|
|
29
|
+
*/
|
|
30
|
+
schemaAssociationId: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Step definition with linking metadata for MoveCashbackRewardToFailed
|
|
34
|
+
*/
|
|
35
|
+
export interface MoveCashbackRewardToFailedStepDefinition {
|
|
36
|
+
/** Unique identifier for this step */
|
|
37
|
+
stepKey: string;
|
|
38
|
+
/** The DTO class name for this step */
|
|
39
|
+
dtoClass: string;
|
|
40
|
+
/** The entity this step creates (Module:Entity format) */
|
|
41
|
+
entity: string;
|
|
42
|
+
/** Links to create after this step executes */
|
|
43
|
+
linksTo: MoveCashbackRewardToFailedStepLink[] | null;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Type-safe step keys for MoveCashbackRewardToFailed
|
|
47
|
+
*/
|
|
48
|
+
export declare const MoveCashbackRewardToFailedSteps: {
|
|
49
|
+
readonly step_1: "step_1";
|
|
50
|
+
};
|
|
51
|
+
export declare type MoveCashbackRewardToFailedStepKey = typeof MoveCashbackRewardToFailedSteps[keyof typeof MoveCashbackRewardToFailedSteps];
|
|
52
|
+
/**
|
|
53
|
+
* RabbitMQ message payload for MoveCashbackRewardToFailed step flow events
|
|
54
|
+
*
|
|
55
|
+
* @event CrmModule.Reward.Action.MoveCashbackRewardToFailed
|
|
56
|
+
*/
|
|
57
|
+
export interface MoveCashbackRewardToFailedMessage extends OdinRecordUpdatedEvent<MoveCashbackRewardToFailedDto, {}> {
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Properties for MoveCashbackRewardToFailed action
|
|
61
|
+
*
|
|
62
|
+
*/
|
|
63
|
+
export interface MoveCashbackRewardToFailedProperties {
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* MoveCashbackRewardToFailed
|
|
67
|
+
*
|
|
68
|
+
* Mark cashback reward as failed
|
|
69
|
+
*
|
|
70
|
+
* @module CrmModule
|
|
71
|
+
* @entity Reward
|
|
72
|
+
* @entityType CASHBACK (CASHBACK)
|
|
73
|
+
* @targetStages CashBackFlowStageFailed
|
|
74
|
+
* @event CrmModule.Reward.Action.MoveCashbackRewardToFailed
|
|
75
|
+
* @permission schema.action.movecashbackrewardtofailed.trigger
|
|
76
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
77
|
+
*/
|
|
78
|
+
export declare class MoveCashbackRewardToFailedDto extends OdinRecordUpdateDto<Record<string, any>> {
|
|
79
|
+
/** Used by SDK generators to identify action type */
|
|
80
|
+
static readonly ACTION_TYPE = "UPDATE";
|
|
81
|
+
static readonly ACTION_KEY = "MoveCashbackRewardToFailed";
|
|
82
|
+
static readonly MODULE_NAME = "CrmModule";
|
|
83
|
+
static readonly ENTITIES: string[];
|
|
84
|
+
static readonly ENTITY_TYPE = "CASHBACK";
|
|
85
|
+
static readonly EVENT_NAME = "CrmModule.Reward.Action.MoveCashbackRewardToFailed";
|
|
86
|
+
static readonly SCHEMA_ACTION_ID = "ebb4e1ae-ce70-4952-9b73-dd247ea9299c";
|
|
87
|
+
static readonly PERMISSION = "schema.action.movecashbackrewardtofailed.trigger";
|
|
88
|
+
static readonly TARGET_STAGES: readonly ["CashBackFlowStageFailed"];
|
|
89
|
+
static readonly IS_STAGE_TRANSITION = false;
|
|
90
|
+
static readonly IS_MULTI_STEP_FLOW = false;
|
|
91
|
+
static readonly HAS_STEP_LINKS = false;
|
|
92
|
+
/**
|
|
93
|
+
* Step definitions with linking metadata
|
|
94
|
+
* Used by SDK and backend for auto-linking after step execution
|
|
95
|
+
*/
|
|
96
|
+
static readonly stepDefinitions: MoveCashbackRewardToFailedStepDefinition[];
|
|
97
|
+
/** Type-safe step key accessor */
|
|
98
|
+
static readonly Steps: {
|
|
99
|
+
readonly step_1: "step_1";
|
|
100
|
+
};
|
|
101
|
+
readonly actionName: string;
|
|
102
|
+
readonly schemaActionId: string;
|
|
103
|
+
readonly entity: string;
|
|
104
|
+
readonly stageKey: string;
|
|
105
|
+
constructor(record: OdinRecord<any> | {
|
|
106
|
+
id: string;
|
|
107
|
+
entity: string;
|
|
108
|
+
type?: string;
|
|
109
|
+
}, options?: {
|
|
110
|
+
journeyId?: string;
|
|
111
|
+
});
|
|
112
|
+
/** Step classes that can be used with this action */
|
|
113
|
+
static readonly stepClasses: readonly [];
|
|
114
|
+
steps: StepClassMap[(typeof MoveCashbackRewardToFailedDto.stepClasses)[number]][];
|
|
115
|
+
}
|
|
116
|
+
export {};
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* MoveCashbackRewardToFailed Action DTO
|
|
4
|
+
*
|
|
5
|
+
* Mark cashback reward as failed
|
|
6
|
+
*
|
|
7
|
+
* @module CrmModule
|
|
8
|
+
* @entity Reward
|
|
9
|
+
* @entityType CASHBACK
|
|
10
|
+
* @actionKey MoveCashbackRewardToFailed
|
|
11
|
+
* @event CrmModule.CashbackReward.TransitionToFailed.MoveCashbackRewardToFailed
|
|
12
|
+
*
|
|
13
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.MoveCashbackRewardToFailedDto = exports.MoveCashbackRewardToFailedSteps = void 0;
|
|
17
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
18
|
+
/**
|
|
19
|
+
* Type-safe step keys for MoveCashbackRewardToFailed
|
|
20
|
+
*/
|
|
21
|
+
exports.MoveCashbackRewardToFailedSteps = {
|
|
22
|
+
step_1: 'step_1',
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* MoveCashbackRewardToFailed
|
|
26
|
+
*
|
|
27
|
+
* Mark cashback reward as failed
|
|
28
|
+
*
|
|
29
|
+
* @module CrmModule
|
|
30
|
+
* @entity Reward
|
|
31
|
+
* @entityType CASHBACK (CASHBACK)
|
|
32
|
+
* @targetStages CashBackFlowStageFailed
|
|
33
|
+
* @event CrmModule.Reward.Action.MoveCashbackRewardToFailed
|
|
34
|
+
* @permission schema.action.movecashbackrewardtofailed.trigger
|
|
35
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
36
|
+
*/
|
|
37
|
+
class MoveCashbackRewardToFailedDto extends core_1.OdinRecordUpdateDto {
|
|
38
|
+
constructor(record, options) {
|
|
39
|
+
super({
|
|
40
|
+
id: record.id,
|
|
41
|
+
entity: record.entity,
|
|
42
|
+
type: record.type,
|
|
43
|
+
properties: {},
|
|
44
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
45
|
+
});
|
|
46
|
+
this.actionName = 'MoveCashbackRewardToFailed';
|
|
47
|
+
this.schemaActionId = 'ebb4e1ae-ce70-4952-9b73-dd247ea9299c';
|
|
48
|
+
this.entity = 'CrmModule:Reward';
|
|
49
|
+
this.stageKey = 'CashBackFlowStageFailed';
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.MoveCashbackRewardToFailedDto = MoveCashbackRewardToFailedDto;
|
|
53
|
+
/** Used by SDK generators to identify action type */
|
|
54
|
+
MoveCashbackRewardToFailedDto.ACTION_TYPE = 'UPDATE';
|
|
55
|
+
MoveCashbackRewardToFailedDto.ACTION_KEY = 'MoveCashbackRewardToFailed';
|
|
56
|
+
MoveCashbackRewardToFailedDto.MODULE_NAME = 'CrmModule';
|
|
57
|
+
MoveCashbackRewardToFailedDto.ENTITIES = ['Reward'];
|
|
58
|
+
MoveCashbackRewardToFailedDto.ENTITY_TYPE = 'CASHBACK';
|
|
59
|
+
MoveCashbackRewardToFailedDto.EVENT_NAME = 'CrmModule.Reward.Action.MoveCashbackRewardToFailed';
|
|
60
|
+
MoveCashbackRewardToFailedDto.SCHEMA_ACTION_ID = 'ebb4e1ae-ce70-4952-9b73-dd247ea9299c';
|
|
61
|
+
MoveCashbackRewardToFailedDto.PERMISSION = 'schema.action.movecashbackrewardtofailed.trigger';
|
|
62
|
+
MoveCashbackRewardToFailedDto.TARGET_STAGES = ['CashBackFlowStageFailed'];
|
|
63
|
+
MoveCashbackRewardToFailedDto.IS_STAGE_TRANSITION = false;
|
|
64
|
+
MoveCashbackRewardToFailedDto.IS_MULTI_STEP_FLOW = false;
|
|
65
|
+
MoveCashbackRewardToFailedDto.HAS_STEP_LINKS = false;
|
|
66
|
+
/**
|
|
67
|
+
* Step definitions with linking metadata
|
|
68
|
+
* Used by SDK and backend for auto-linking after step execution
|
|
69
|
+
*/
|
|
70
|
+
MoveCashbackRewardToFailedDto.stepDefinitions = [
|
|
71
|
+
{
|
|
72
|
+
stepKey: 'step_1',
|
|
73
|
+
dtoClass: 'unknown',
|
|
74
|
+
entity: 'unknown',
|
|
75
|
+
linksTo: null
|
|
76
|
+
}
|
|
77
|
+
];
|
|
78
|
+
/** Type-safe step key accessor */
|
|
79
|
+
MoveCashbackRewardToFailedDto.Steps = exports.MoveCashbackRewardToFailedSteps;
|
|
80
|
+
/** Step classes that can be used with this action */
|
|
81
|
+
MoveCashbackRewardToFailedDto.stepClasses = [];
|