@d19n/youfibre-odin-sdk 2.0.13-beta.0 → 2.0.13-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 +2 -1
- package/dist/actions-v2/AddressUpdateDto.d.ts +8 -1
- package/dist/actions-v2/CreateOrderFromBrskDto.d.ts +56 -0
- package/dist/actions-v2/CreateOrderFromBrskDto.js +52 -0
- package/dist/entities-v2/Product.d.ts +42 -0
- package/dist/entities-v2/Product.js +2 -0
- package/dist/records-v2/AccountCreditRecord.d.ts +1 -62
- package/dist/records-v2/AccountCreditRecord.js +0 -91
- package/dist/records-v2/AccountRecord.d.ts +2 -306
- package/dist/records-v2/AccountRecord.js +0 -451
- 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 -255
- package/dist/records-v2/ActivityRecord.js +0 -387
- package/dist/records-v2/AddressRecord.d.ts +0 -321
- package/dist/records-v2/AddressRecord.js +0 -532
- package/dist/records-v2/AffiliateCodeRecord.d.ts +1 -102
- package/dist/records-v2/AffiliateCodeRecord.js +0 -157
- package/dist/records-v2/AppointmentRecord.d.ts +0 -141
- package/dist/records-v2/AppointmentRecord.js +0 -235
- package/dist/records-v2/BillingAdjustmentRecord.d.ts +0 -81
- package/dist/records-v2/BillingAdjustmentRecord.js +0 -136
- package/dist/records-v2/BillingRequestRecord.d.ts +2 -178
- package/dist/records-v2/BillingRequestRecord.js +0 -271
- package/dist/records-v2/BlockageA55Record.d.ts +2 -103
- package/dist/records-v2/BlockageA55Record.js +0 -157
- package/dist/records-v2/BrskEntityMigrationErrorRecord.d.ts +1 -21
- package/dist/records-v2/BrskEntityMigrationErrorRecord.js +0 -21
- package/dist/records-v2/CallEventRecord.d.ts +1 -82
- package/dist/records-v2/CallEventRecord.js +0 -124
- package/dist/records-v2/CallLegRecord.d.ts +1 -82
- package/dist/records-v2/CallLegRecord.js +0 -124
- package/dist/records-v2/CallRecord.d.ts +1 -202
- package/dist/records-v2/CallRecord.js +0 -322
- package/dist/records-v2/CallTransferRecord.d.ts +1 -102
- package/dist/records-v2/CallTransferRecord.js +0 -157
- 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 -418
- package/dist/records-v2/CaseRecord.js +0 -667
- package/dist/records-v2/ChangeReasonRecord.d.ts +2 -171
- package/dist/records-v2/ChangeReasonRecord.js +0 -238
- 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 -560
- package/dist/records-v2/ContactRecord.js +0 -927
- package/dist/records-v2/ContractBuyOutRecord.d.ts +1 -162
- package/dist/records-v2/ContractBuyOutRecord.js +0 -256
- package/dist/records-v2/ConversationFeedbackRecord.d.ts +1 -102
- package/dist/records-v2/ConversationFeedbackRecord.js +0 -157
- package/dist/records-v2/ConversationRecord.d.ts +1 -102
- package/dist/records-v2/ConversationRecord.js +0 -157
- package/dist/records-v2/CreditNoteRecord.d.ts +0 -81
- package/dist/records-v2/CreditNoteRecord.js +0 -136
- 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/CustomerDeviceConfigurationRecord.d.ts +1 -62
- package/dist/records-v2/CustomerDeviceConfigurationRecord.js +0 -91
- package/dist/records-v2/CustomerDeviceOntRecord.d.ts +0 -181
- package/dist/records-v2/CustomerDeviceOntRecord.js +0 -301
- package/dist/records-v2/CustomerDeviceRouterRecord.d.ts +0 -141
- package/dist/records-v2/CustomerDeviceRouterRecord.js +0 -235
- 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 -121
- package/dist/records-v2/DiscountRecord.js +0 -202
- package/dist/records-v2/EmailRecord.d.ts +2 -230
- package/dist/records-v2/EmailRecord.js +0 -336
- package/dist/records-v2/EmailSenderRecord.d.ts +1 -42
- package/dist/records-v2/EmailSenderRecord.js +0 -58
- 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/FileRecord.d.ts +2 -1211
- package/dist/records-v2/FileRecord.js +0 -1902
- 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 -83
- package/dist/records-v2/InternalInstallAuditRecord.js +0 -124
- package/dist/records-v2/InvoiceItemRecord.d.ts +0 -40
- package/dist/records-v2/InvoiceItemRecord.js +0 -69
- package/dist/records-v2/InvoiceRecord.d.ts +2 -399
- package/dist/records-v2/InvoiceRecord.js +0 -635
- package/dist/records-v2/KnowledgeArticleRecord.d.ts +2 -98
- package/dist/records-v2/KnowledgeArticleRecord.js +0 -139
- package/dist/records-v2/LeadRecord.d.ts +0 -261
- package/dist/records-v2/LeadRecord.js +0 -433
- package/dist/records-v2/MessageRecord.d.ts +2 -99
- package/dist/records-v2/MessageRecord.js +0 -140
- 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 -1121
- package/dist/records-v2/NoteRecord.js +0 -1839
- 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 -83
- package/dist/records-v2/OhAuditOfInstallationRecord.js +0 -124
- package/dist/records-v2/OhExternalAuditRecord.d.ts +2 -83
- package/dist/records-v2/OhExternalAuditRecord.js +0 -124
- package/dist/records-v2/OhInProgressAuditRecord.d.ts +2 -83
- package/dist/records-v2/OhInProgressAuditRecord.js +0 -124
- package/dist/records-v2/OhInstallationAuditRecord.d.ts +2 -83
- package/dist/records-v2/OhInstallationAuditRecord.js +0 -124
- package/dist/records-v2/OhRetroAuditRecord.d.ts +2 -83
- package/dist/records-v2/OhRetroAuditRecord.js +0 -124
- package/dist/records-v2/OneTouchSwitchRecord.d.ts +2 -255
- package/dist/records-v2/OneTouchSwitchRecord.js +0 -387
- 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 -280
- package/dist/records-v2/OrderItemRecord.js +0 -465
- package/dist/records-v2/OrderKciRecord.d.ts +1 -42
- package/dist/records-v2/OrderKciRecord.js +0 -58
- package/dist/records-v2/OrderRecord.d.ts +29 -620
- package/dist/records-v2/OrderRecord.js +36 -1026
- 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 -83
- package/dist/records-v2/OverlayRealA55Record.js +0 -124
- 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 -121
- package/dist/records-v2/PaymentMethodRecord.js +0 -202
- package/dist/records-v2/PaymentMethodRefundRecord.d.ts +0 -181
- package/dist/records-v2/PaymentMethodRefundRecord.js +0 -301
- 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 -95
- package/dist/records-v2/PgDirectDebitFileRecord.js +0 -123
- 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/PhoneNumberRecord.d.ts +0 -41
- package/dist/records-v2/PhoneNumberRecord.js +0 -70
- 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 -258
- package/dist/records-v2/ProductRecord.js +0 -351
- package/dist/records-v2/PushNotificationRecord.d.ts +1 -162
- package/dist/records-v2/PushNotificationRecord.js +0 -256
- package/dist/records-v2/ReferralRecord.d.ts +2 -143
- package/dist/records-v2/ReferralRecord.js +0 -223
- package/dist/records-v2/RemediationOutcomeFormRecord.d.ts +2 -83
- package/dist/records-v2/RemediationOutcomeFormRecord.js +0 -124
- package/dist/records-v2/RemediationRequiredReasonRecord.d.ts +2 -103
- package/dist/records-v2/RemediationRequiredReasonRecord.js +0 -157
- package/dist/records-v2/ReturnsRecord.d.ts +1 -62
- package/dist/records-v2/ReturnsRecord.js +0 -91
- package/dist/records-v2/RewardRecord.d.ts +2 -123
- package/dist/records-v2/RewardRecord.js +0 -190
- 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 -81
- package/dist/records-v2/ServiceAppointmentRecord.js +0 -136
- 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 -83
- package/dist/records-v2/ServiceVisitAuditRecord.js +0 -124
- package/dist/records-v2/SiteSpecificRiskAssessmentOutcomeFormRecord.d.ts +2 -83
- package/dist/records-v2/SiteSpecificRiskAssessmentOutcomeFormRecord.js +0 -124
- package/dist/records-v2/SmsMessageRecord.d.ts +2 -175
- package/dist/records-v2/SmsMessageRecord.js +0 -255
- package/dist/records-v2/SweeperMaintenanceAuditRecord.d.ts +2 -83
- package/dist/records-v2/SweeperMaintenanceAuditRecord.js +0 -124
- package/dist/records-v2/TeamRecord.d.ts +0 -101
- package/dist/records-v2/TeamRecord.js +0 -169
- package/dist/records-v2/TestEntityForVisualBuilderRecord.d.ts +2 -115
- package/dist/records-v2/TestEntityForVisualBuilderRecord.js +0 -156
- 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 -181
- package/dist/records-v2/TransactionRecord.js +0 -288
- 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 -83
- package/dist/records-v2/UgAuditOfInstallationRecord.js +0 -124
- package/dist/records-v2/UgExternalAuditRecord.d.ts +2 -83
- package/dist/records-v2/UgExternalAuditRecord.js +0 -124
- package/dist/records-v2/UgInProgressAuditRecord.d.ts +2 -83
- package/dist/records-v2/UgInProgressAuditRecord.js +0 -124
- package/dist/records-v2/UgInstallationAuditRecord.d.ts +2 -83
- package/dist/records-v2/UgInstallationAuditRecord.js +0 -124
- package/dist/records-v2/UgRetroAuditRecord.d.ts +2 -83
- package/dist/records-v2/UgRetroAuditRecord.js +0 -124
- package/dist/records-v2/UserRecord.d.ts +0 -400
- package/dist/records-v2/UserRecord.js +0 -663
- package/dist/records-v2/VisitRecord.d.ts +0 -121
- package/dist/records-v2/VisitRecord.js +0 -202
- 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 -83
- package/dist/records-v2/WayleaveAuditRecord.js +0 -124
- package/dist/records-v2/WorkOrderRecord.d.ts +2 -1226
- package/dist/records-v2/WorkOrderRecord.js +0 -1865
- 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 -83
- package/dist/records-v2/YfFieldServiceVisitRecord.js +0 -124
- package/dist/records-v2/YfStockAuditRecord.d.ts +2 -103
- package/dist/records-v2/YfStockAuditRecord.js +0 -157
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -352,7 +352,7 @@ This SDK includes **164** entities across **12** modules.
|
|
|
352
352
|
|
|
353
353
|
## Actions
|
|
354
354
|
|
|
355
|
-
This SDK includes **
|
|
355
|
+
This SDK includes **579** actions.
|
|
356
356
|
|
|
357
357
|
### Action Types
|
|
358
358
|
|
|
@@ -376,6 +376,7 @@ This SDK includes **578** actions.
|
|
|
376
376
|
| `ChangeBillingDay` | UPDATE | k1.t-hEOJjsDb.OrderModule.Order.Update.ChangeBillingDay |
|
|
377
377
|
| `ClearOrderDeactivateOnDate` | UPDATE | k1.t-hEOJjsDb.OrderModule.Order.Update.ClearOrderDeactivateOnDate |
|
|
378
378
|
| `CreateInstallWorkOrderFlow` | UPDATE | k1.t-hEOJjsDb.OrderModule.Order.Flow.CreateInstallWorkOrderFlow |
|
|
379
|
+
| `CreateOrderFromBrsk` | CREATE | k1.t-t-hEOJjsDb.OrderModule.Order.Create.CreateOrderFromBrsk |
|
|
379
380
|
| `CreateRecontractOrder` | CREATE | k1.t-hEOJjsDb.OrderModule.Order.Create.CreateRecontractOrder |
|
|
380
381
|
| `DeactivateOrderDunning` | STAGE_TRANSITION | k1.t-hEOJjsDb.OrderModule.Order.Transition.DeactivateOrderDunning |
|
|
381
382
|
| `ManageCommision` | UPDATE | k1.t-hEOJjsDb.OrderModule.Order.Update.ManageCommision |
|
|
@@ -22,7 +22,7 @@ export interface AddressUpdateMessage extends OdinRecordUpdatedEvent<AddressUpda
|
|
|
22
22
|
* Properties for AddressUpdate action
|
|
23
23
|
*
|
|
24
24
|
* @property Required fields: 0
|
|
25
|
-
* @property Optional fields:
|
|
25
|
+
* @property Optional fields: 8
|
|
26
26
|
*/
|
|
27
27
|
export interface AddressUpdateProperties {
|
|
28
28
|
/**
|
|
@@ -74,6 +74,13 @@ export interface AddressUpdateProperties {
|
|
|
74
74
|
* @type {TEXT}
|
|
75
75
|
*/
|
|
76
76
|
PostTown?: string | null;
|
|
77
|
+
/**
|
|
78
|
+
* providers
|
|
79
|
+
*
|
|
80
|
+
* comma separated list of network providers servicing the address (Sales - Address)
|
|
81
|
+
* @type {TEXT}
|
|
82
|
+
*/
|
|
83
|
+
Providers?: string | null;
|
|
77
84
|
}
|
|
78
85
|
/**
|
|
79
86
|
* AddressUpdate
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CreateOrderFromBrsk Action DTO
|
|
3
|
+
*
|
|
4
|
+
* CreateOrderFromBrsk
|
|
5
|
+
*
|
|
6
|
+
* @module OrderModule
|
|
7
|
+
* @entity Order
|
|
8
|
+
* @actionKey CreateOrderFromBrsk
|
|
9
|
+
* @event k1.t-t-hEOJjsDb.OrderModule.Order.Create.CreateOrderFromBrsk
|
|
10
|
+
*
|
|
11
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
12
|
+
*/
|
|
13
|
+
import { OdinRecordCreateDto, OdinRecordCreatedEvent } from '@d19n/odin-types/dist/core';
|
|
14
|
+
/**
|
|
15
|
+
* RabbitMQ message payload for CreateOrderFromBrsk created events
|
|
16
|
+
*
|
|
17
|
+
* @event k1.t-t-hEOJjsDb.OrderModule.Order.Create.CreateOrderFromBrsk
|
|
18
|
+
*/
|
|
19
|
+
export interface CreateOrderFromBrskMessage extends OdinRecordCreatedEvent<CreateOrderFromBrskDto, CreateOrderFromBrskProperties> {
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Properties for CreateOrderFromBrsk action
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
export interface CreateOrderFromBrskProperties {
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* CreateOrderFromBrsk
|
|
29
|
+
*
|
|
30
|
+
* @actionType CREATE - Creates a new Order record
|
|
31
|
+
* @module OrderModule
|
|
32
|
+
* @entity Order
|
|
33
|
+
* @event k1.t-t-hEOJjsDb.OrderModule.Order.Create.CreateOrderFromBrsk
|
|
34
|
+
* @permission schema.action.createorderfrombrsk.trigger
|
|
35
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
36
|
+
*/
|
|
37
|
+
export declare class CreateOrderFromBrskDto extends OdinRecordCreateDto<CreateOrderFromBrskProperties> {
|
|
38
|
+
/** Used by SDK generators to identify action type */
|
|
39
|
+
static readonly ACTION_TYPE = "CREATE";
|
|
40
|
+
static readonly ACTION_KEY = "CreateOrderFromBrsk";
|
|
41
|
+
static readonly MODULE_NAME = "OrderModule";
|
|
42
|
+
static readonly ENTITIES: string[];
|
|
43
|
+
static readonly EVENT_NAME = "k1.t-t-hEOJjsDb.OrderModule.Order.Create.CreateOrderFromBrsk";
|
|
44
|
+
static readonly PERMISSION = "schema.action.createorderfrombrsk.trigger";
|
|
45
|
+
/** Step metadata - entity this action targets */
|
|
46
|
+
static readonly STEP_ENTITY = "OrderModule:Order";
|
|
47
|
+
static readonly STEP_SCHEMA_ID = "a5fc0677-e439-4d6f-81e9-e7c05e2fa36c";
|
|
48
|
+
static readonly STEP_SCHEMA_ACTION_ID = "e10a79c8-827a-4720-8715-aa0585bbf973";
|
|
49
|
+
static readonly AUTO_LINK_PARENT = true;
|
|
50
|
+
readonly actionName: string;
|
|
51
|
+
readonly schemaActionId: string;
|
|
52
|
+
readonly entity: string;
|
|
53
|
+
constructor(properties: CreateOrderFromBrskProperties, options?: {
|
|
54
|
+
journeyId?: string;
|
|
55
|
+
});
|
|
56
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* CreateOrderFromBrsk Action DTO
|
|
4
|
+
*
|
|
5
|
+
* CreateOrderFromBrsk
|
|
6
|
+
*
|
|
7
|
+
* @module OrderModule
|
|
8
|
+
* @entity Order
|
|
9
|
+
* @actionKey CreateOrderFromBrsk
|
|
10
|
+
* @event k1.t-t-hEOJjsDb.OrderModule.Order.Create.CreateOrderFromBrsk
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.CreateOrderFromBrskDto = void 0;
|
|
16
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
|
+
/**
|
|
18
|
+
* CreateOrderFromBrsk
|
|
19
|
+
*
|
|
20
|
+
* @actionType CREATE - Creates a new Order record
|
|
21
|
+
* @module OrderModule
|
|
22
|
+
* @entity Order
|
|
23
|
+
* @event k1.t-t-hEOJjsDb.OrderModule.Order.Create.CreateOrderFromBrsk
|
|
24
|
+
* @permission schema.action.createorderfrombrsk.trigger
|
|
25
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
26
|
+
*/
|
|
27
|
+
class CreateOrderFromBrskDto extends core_1.OdinRecordCreateDto {
|
|
28
|
+
constructor(properties, options) {
|
|
29
|
+
super({
|
|
30
|
+
entity: 'OrderModule:Order',
|
|
31
|
+
type: undefined,
|
|
32
|
+
properties,
|
|
33
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
34
|
+
});
|
|
35
|
+
this.actionName = 'CreateOrderFromBrsk';
|
|
36
|
+
this.schemaActionId = 'e10a79c8-827a-4720-8715-aa0585bbf973';
|
|
37
|
+
this.entity = 'OrderModule:Order';
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
exports.CreateOrderFromBrskDto = CreateOrderFromBrskDto;
|
|
41
|
+
/** Used by SDK generators to identify action type */
|
|
42
|
+
CreateOrderFromBrskDto.ACTION_TYPE = 'CREATE';
|
|
43
|
+
CreateOrderFromBrskDto.ACTION_KEY = 'CreateOrderFromBrsk';
|
|
44
|
+
CreateOrderFromBrskDto.MODULE_NAME = 'OrderModule';
|
|
45
|
+
CreateOrderFromBrskDto.ENTITIES = ['Order'];
|
|
46
|
+
CreateOrderFromBrskDto.EVENT_NAME = 'k1.t-t-hEOJjsDb.OrderModule.Order.Create.CreateOrderFromBrsk';
|
|
47
|
+
CreateOrderFromBrskDto.PERMISSION = 'schema.action.createorderfrombrsk.trigger';
|
|
48
|
+
/** Step metadata - entity this action targets */
|
|
49
|
+
CreateOrderFromBrskDto.STEP_ENTITY = 'OrderModule:Order';
|
|
50
|
+
CreateOrderFromBrskDto.STEP_SCHEMA_ID = 'a5fc0677-e439-4d6f-81e9-e7c05e2fa36c';
|
|
51
|
+
CreateOrderFromBrskDto.STEP_SCHEMA_ACTION_ID = 'e10a79c8-827a-4720-8715-aa0585bbf973';
|
|
52
|
+
CreateOrderFromBrskDto.AUTO_LINK_PARENT = true;
|
|
@@ -309,6 +309,8 @@ export declare enum ProductContractType {
|
|
|
309
309
|
* Use these constants instead of string literals for type safety
|
|
310
310
|
*/
|
|
311
311
|
export declare enum ProductPropertyKeys {
|
|
312
|
+
/** External Reference ID */
|
|
313
|
+
ExternalRef = "ExternalRef",
|
|
312
314
|
/** suggested price to sell a single product (Product Management - Product) */
|
|
313
315
|
UnitPrice = "UnitPrice",
|
|
314
316
|
/** promo label pricing box down (Product Management - Product) */
|
|
@@ -416,6 +418,11 @@ export declare enum ProductPropertyKeys {
|
|
|
416
418
|
* @see ProductModule:Product
|
|
417
419
|
*/
|
|
418
420
|
export interface ProductProperties {
|
|
421
|
+
/** External Reference ID
|
|
422
|
+
*
|
|
423
|
+
* @type {TEXT}
|
|
424
|
+
*/
|
|
425
|
+
ExternalRef: string;
|
|
419
426
|
/** suggested price to sell a single product (Product Management - Product)
|
|
420
427
|
*
|
|
421
428
|
* @type {CURRENCY}
|
|
@@ -728,6 +735,11 @@ export interface ProductProperties {
|
|
|
728
735
|
* @see ProductModule:Product
|
|
729
736
|
*/
|
|
730
737
|
export interface BundleProductProperties {
|
|
738
|
+
/** External Reference ID
|
|
739
|
+
*
|
|
740
|
+
* @type {TEXT}
|
|
741
|
+
*/
|
|
742
|
+
ExternalRef: string;
|
|
731
743
|
/** suggested price to sell a single product (Product Management - Product)
|
|
732
744
|
*
|
|
733
745
|
* @type {CURRENCY}
|
|
@@ -1040,6 +1052,11 @@ export interface BundleProductProperties {
|
|
|
1040
1052
|
* @see ProductModule:Product
|
|
1041
1053
|
*/
|
|
1042
1054
|
export interface InternetProductProperties {
|
|
1055
|
+
/** External Reference ID
|
|
1056
|
+
*
|
|
1057
|
+
* @type {TEXT}
|
|
1058
|
+
*/
|
|
1059
|
+
ExternalRef: string;
|
|
1043
1060
|
/** suggested price to sell a single product (Product Management - Product)
|
|
1044
1061
|
*
|
|
1045
1062
|
* @type {CURRENCY}
|
|
@@ -1352,6 +1369,11 @@ export interface InternetProductProperties {
|
|
|
1352
1369
|
* @see ProductModule:Product
|
|
1353
1370
|
*/
|
|
1354
1371
|
export interface LaborProductProperties {
|
|
1372
|
+
/** External Reference ID
|
|
1373
|
+
*
|
|
1374
|
+
* @type {TEXT}
|
|
1375
|
+
*/
|
|
1376
|
+
ExternalRef: string;
|
|
1355
1377
|
/** suggested price to sell a single product (Product Management - Product)
|
|
1356
1378
|
*
|
|
1357
1379
|
* @type {CURRENCY}
|
|
@@ -1664,6 +1686,11 @@ export interface LaborProductProperties {
|
|
|
1664
1686
|
* @see ProductModule:Product
|
|
1665
1687
|
*/
|
|
1666
1688
|
export interface LandlineProductProperties {
|
|
1689
|
+
/** External Reference ID
|
|
1690
|
+
*
|
|
1691
|
+
* @type {TEXT}
|
|
1692
|
+
*/
|
|
1693
|
+
ExternalRef: string;
|
|
1667
1694
|
/** suggested price to sell a single product (Product Management - Product)
|
|
1668
1695
|
*
|
|
1669
1696
|
* @type {CURRENCY}
|
|
@@ -1976,6 +2003,11 @@ export interface LandlineProductProperties {
|
|
|
1976
2003
|
* @see ProductModule:Product
|
|
1977
2004
|
*/
|
|
1978
2005
|
export interface MeshProductProperties {
|
|
2006
|
+
/** External Reference ID
|
|
2007
|
+
*
|
|
2008
|
+
* @type {TEXT}
|
|
2009
|
+
*/
|
|
2010
|
+
ExternalRef: string;
|
|
1979
2011
|
/** suggested price to sell a single product (Product Management - Product)
|
|
1980
2012
|
*
|
|
1981
2013
|
* @type {CURRENCY}
|
|
@@ -2288,6 +2320,11 @@ export interface MeshProductProperties {
|
|
|
2288
2320
|
* @see ProductModule:Product
|
|
2289
2321
|
*/
|
|
2290
2322
|
export interface MobileProductProperties {
|
|
2323
|
+
/** External Reference ID
|
|
2324
|
+
*
|
|
2325
|
+
* @type {TEXT}
|
|
2326
|
+
*/
|
|
2327
|
+
ExternalRef: string;
|
|
2291
2328
|
/** suggested price to sell a single product (Product Management - Product)
|
|
2292
2329
|
*
|
|
2293
2330
|
* @type {CURRENCY}
|
|
@@ -2600,6 +2637,11 @@ export interface MobileProductProperties {
|
|
|
2600
2637
|
* @see ProductModule:Product
|
|
2601
2638
|
*/
|
|
2602
2639
|
export interface TelevisionProductProperties {
|
|
2640
|
+
/** External Reference ID
|
|
2641
|
+
*
|
|
2642
|
+
* @type {TEXT}
|
|
2643
|
+
*/
|
|
2644
|
+
ExternalRef: string;
|
|
2603
2645
|
/** suggested price to sell a single product (Product Management - Product)
|
|
2604
2646
|
*
|
|
2605
2647
|
* @type {CURRENCY}
|
|
@@ -323,6 +323,8 @@ var ProductContractType;
|
|
|
323
323
|
*/
|
|
324
324
|
var ProductPropertyKeys;
|
|
325
325
|
(function (ProductPropertyKeys) {
|
|
326
|
+
/** External Reference ID */
|
|
327
|
+
ProductPropertyKeys["ExternalRef"] = "ExternalRef";
|
|
326
328
|
/** suggested price to sell a single product (Product Management - Product) */
|
|
327
329
|
ProductPropertyKeys["UnitPrice"] = "UnitPrice";
|
|
328
330
|
/** promo label pricing box down (Product Management - Product) */
|
|
@@ -13,22 +13,15 @@
|
|
|
13
13
|
* await record.createAccountCredit({ ... }).execute();
|
|
14
14
|
* ```
|
|
15
15
|
*
|
|
16
|
-
* Entity Types: DEFAULT
|
|
17
|
-
*
|
|
18
16
|
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
19
17
|
*/
|
|
20
18
|
import { OdinRecord, OdinRecordLinkDto } from '@d19n/odin-types/dist/core';
|
|
21
19
|
import { PipelineStageEntity } from '@d19n/odin-types/dist/core';
|
|
22
20
|
import { IDbRecordCreateUpdateRes } from '@d19n/odin-types/dist/core/interfaces/v1.db.interfaces';
|
|
23
21
|
import { IOdinProvider } from '@d19n/odin-sdk-generator/dist/odin-sdk-types';
|
|
24
|
-
import { RecordLinkManager } from '@d19n/odin-sdk-generator/dist/record-link-manager';
|
|
25
22
|
import { AccountCreditProperties } from '../entities-v2/AccountCredit';
|
|
26
23
|
import { CreateAccountCreditProperties } from '../actions-v2/CreateAccountCreditDto';
|
|
27
24
|
import { UpdateAccountCreditBalanceProperties } from '../actions-v2/UpdateAccountCreditBalanceDto';
|
|
28
|
-
import { ContactRecord } from './ContactRecord';
|
|
29
|
-
import { InvoiceRecord } from './InvoiceRecord';
|
|
30
|
-
/** Valid entity types for AccountCredit */
|
|
31
|
-
export declare type AccountCreditType = 'DEFAULT';
|
|
32
25
|
/**
|
|
33
26
|
* Builder for action execution with dryRun support
|
|
34
27
|
*
|
|
@@ -92,8 +85,6 @@ export declare class AccountCreditRecord<TProps = AccountCreditProperties> {
|
|
|
92
85
|
private _provider;
|
|
93
86
|
private _pendingLinks;
|
|
94
87
|
private _preGeneratedId;
|
|
95
|
-
private _contacts?;
|
|
96
|
-
private _invoices?;
|
|
97
88
|
/**
|
|
98
89
|
* Create a record wrapper.
|
|
99
90
|
* @param record - The underlying record, or null for create operations
|
|
@@ -106,7 +97,7 @@ export declare class AccountCreditRecord<TProps = AccountCreditProperties> {
|
|
|
106
97
|
/** Record ID - always available (pre-generated for new records) */
|
|
107
98
|
get id(): string;
|
|
108
99
|
get entity(): string;
|
|
109
|
-
get type():
|
|
100
|
+
get type(): string | undefined;
|
|
110
101
|
/** Record properties - empty object for new (unsaved) records */
|
|
111
102
|
get properties(): TProps;
|
|
112
103
|
get title(): string | undefined;
|
|
@@ -119,58 +110,6 @@ export declare class AccountCreditRecord<TProps = AccountCreditProperties> {
|
|
|
119
110
|
get groups(): string[];
|
|
120
111
|
/** Access the underlying OdinRecord (null for new records) */
|
|
121
112
|
get record(): OdinRecord<TProps> | null;
|
|
122
|
-
/**
|
|
123
|
-
* Type guard: check if this record is of type DEFAULT
|
|
124
|
-
*
|
|
125
|
-
* When this returns true, TypeScript automatically narrows the type,
|
|
126
|
-
* giving you access to DEFAULT-specific properties.
|
|
127
|
-
*
|
|
128
|
-
* @example
|
|
129
|
-
* ```typescript
|
|
130
|
-
* if (record.isDefault()) {
|
|
131
|
-
* // TypeScript knows record.properties is AccountCreditProperties
|
|
132
|
-
* console.log(record.properties.SomeTypeSpecificField);
|
|
133
|
-
* }
|
|
134
|
-
* ```
|
|
135
|
-
* @remarks This is the default record type
|
|
136
|
-
*/
|
|
137
|
-
isDefault(): this is AccountCreditRecord<AccountCreditProperties>;
|
|
138
|
-
/** Valid labels for Contact associations */
|
|
139
|
-
static readonly contactsLabels: readonly ["Contact__AccountCredit"];
|
|
140
|
-
/**
|
|
141
|
-
* Access linked Contact records
|
|
142
|
-
* @remarks Available labels: Contact__AccountCredit
|
|
143
|
-
* @throws Error if called on a new (unsaved) record
|
|
144
|
-
*
|
|
145
|
-
* @example
|
|
146
|
-
* ```typescript
|
|
147
|
-
* // Get all linked Contact records
|
|
148
|
-
* const items = await record.contacts.list();
|
|
149
|
-
* const first = await record.contacts.first();
|
|
150
|
-
*
|
|
151
|
-
* // Filter by label
|
|
152
|
-
* const specific = await record.contacts.first({ label: 'Contact__AccountCredit' });
|
|
153
|
-
* ```
|
|
154
|
-
*/
|
|
155
|
-
get contacts(): RecordLinkManager<ContactRecord, typeof AccountCreditRecord['contactsLabels'][number]>;
|
|
156
|
-
/** Valid labels for Invoice associations */
|
|
157
|
-
static readonly invoicesLabels: readonly ["AccountCredit__Invoice"];
|
|
158
|
-
/**
|
|
159
|
-
* Access linked Invoice records
|
|
160
|
-
* @remarks Available labels: AccountCredit__Invoice
|
|
161
|
-
* @throws Error if called on a new (unsaved) record
|
|
162
|
-
*
|
|
163
|
-
* @example
|
|
164
|
-
* ```typescript
|
|
165
|
-
* // Get all linked Invoice records
|
|
166
|
-
* const items = await record.invoices.list();
|
|
167
|
-
* const first = await record.invoices.first();
|
|
168
|
-
*
|
|
169
|
-
* // Filter by label
|
|
170
|
-
* const specific = await record.invoices.first({ label: 'AccountCredit__Invoice' });
|
|
171
|
-
* ```
|
|
172
|
-
*/
|
|
173
|
-
get invoices(): RecordLinkManager<InvoiceRecord, typeof AccountCreditRecord['invoicesLabels'][number]>;
|
|
174
113
|
/**
|
|
175
114
|
* Queue a link to be created with the next action.
|
|
176
115
|
* Works for both create and update actions.
|
|
@@ -14,8 +14,6 @@
|
|
|
14
14
|
* await record.createAccountCredit({ ... }).execute();
|
|
15
15
|
* ```
|
|
16
16
|
*
|
|
17
|
-
* Entity Types: DEFAULT
|
|
18
|
-
*
|
|
19
17
|
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
20
18
|
*/
|
|
21
19
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
@@ -31,9 +29,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
31
29
|
exports.isAccountCreditRecord = exports.AccountCreditRecord = void 0;
|
|
32
30
|
const uuid_1 = require("uuid");
|
|
33
31
|
const core_1 = require("@d19n/odin-types/dist/core");
|
|
34
|
-
const record_link_manager_1 = require("@d19n/odin-sdk-generator/dist/record-link-manager");
|
|
35
|
-
const ContactRecord_1 = require("./ContactRecord");
|
|
36
|
-
const InvoiceRecord_1 = require("./InvoiceRecord");
|
|
37
32
|
/**
|
|
38
33
|
* Builder for action execution with dryRun support
|
|
39
34
|
*
|
|
@@ -145,85 +140,6 @@ class AccountCreditRecord {
|
|
|
145
140
|
/** Access the underlying OdinRecord (null for new records) */
|
|
146
141
|
get record() { return this._record; }
|
|
147
142
|
// ============================================
|
|
148
|
-
// TYPE GUARDS (with TypeScript type predicates)
|
|
149
|
-
// ============================================
|
|
150
|
-
/**
|
|
151
|
-
* Type guard: check if this record is of type DEFAULT
|
|
152
|
-
*
|
|
153
|
-
* When this returns true, TypeScript automatically narrows the type,
|
|
154
|
-
* giving you access to DEFAULT-specific properties.
|
|
155
|
-
*
|
|
156
|
-
* @example
|
|
157
|
-
* ```typescript
|
|
158
|
-
* if (record.isDefault()) {
|
|
159
|
-
* // TypeScript knows record.properties is AccountCreditProperties
|
|
160
|
-
* console.log(record.properties.SomeTypeSpecificField);
|
|
161
|
-
* }
|
|
162
|
-
* ```
|
|
163
|
-
* @remarks This is the default record type
|
|
164
|
-
*/
|
|
165
|
-
isDefault() { var _a; return ((_a = this._record) === null || _a === void 0 ? void 0 : _a.type) === 'DEFAULT'; }
|
|
166
|
-
/**
|
|
167
|
-
* Access linked Contact records
|
|
168
|
-
* @remarks Available labels: Contact__AccountCredit
|
|
169
|
-
* @throws Error if called on a new (unsaved) record
|
|
170
|
-
*
|
|
171
|
-
* @example
|
|
172
|
-
* ```typescript
|
|
173
|
-
* // Get all linked Contact records
|
|
174
|
-
* const items = await record.contacts.list();
|
|
175
|
-
* const first = await record.contacts.first();
|
|
176
|
-
*
|
|
177
|
-
* // Filter by label
|
|
178
|
-
* const specific = await record.contacts.first({ label: 'Contact__AccountCredit' });
|
|
179
|
-
* ```
|
|
180
|
-
*/
|
|
181
|
-
get contacts() {
|
|
182
|
-
var _a;
|
|
183
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
184
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
185
|
-
if (!this._contacts) {
|
|
186
|
-
this._contacts = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
187
|
-
sourceEntity: 'BillingModule:AccountCredit',
|
|
188
|
-
targetEntity: 'CrmModule:Contact',
|
|
189
|
-
targetModuleName: 'CrmModule',
|
|
190
|
-
targetEntityName: 'Contact',
|
|
191
|
-
labels: ['Contact__AccountCredit'],
|
|
192
|
-
}, ContactRecord_1.ContactRecord);
|
|
193
|
-
}
|
|
194
|
-
return this._contacts;
|
|
195
|
-
}
|
|
196
|
-
/**
|
|
197
|
-
* Access linked Invoice records
|
|
198
|
-
* @remarks Available labels: AccountCredit__Invoice
|
|
199
|
-
* @throws Error if called on a new (unsaved) record
|
|
200
|
-
*
|
|
201
|
-
* @example
|
|
202
|
-
* ```typescript
|
|
203
|
-
* // Get all linked Invoice records
|
|
204
|
-
* const items = await record.invoices.list();
|
|
205
|
-
* const first = await record.invoices.first();
|
|
206
|
-
*
|
|
207
|
-
* // Filter by label
|
|
208
|
-
* const specific = await record.invoices.first({ label: 'AccountCredit__Invoice' });
|
|
209
|
-
* ```
|
|
210
|
-
*/
|
|
211
|
-
get invoices() {
|
|
212
|
-
var _a;
|
|
213
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
214
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
215
|
-
if (!this._invoices) {
|
|
216
|
-
this._invoices = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
217
|
-
sourceEntity: 'BillingModule:AccountCredit',
|
|
218
|
-
targetEntity: 'BillingModule:Invoice',
|
|
219
|
-
targetModuleName: 'BillingModule',
|
|
220
|
-
targetEntityName: 'Invoice',
|
|
221
|
-
labels: ['AccountCredit__Invoice'],
|
|
222
|
-
}, InvoiceRecord_1.InvoiceRecord);
|
|
223
|
-
}
|
|
224
|
-
return this._invoices;
|
|
225
|
-
}
|
|
226
|
-
// ============================================
|
|
227
143
|
// LINK MANAGEMENT
|
|
228
144
|
// ============================================
|
|
229
145
|
/**
|
|
@@ -339,13 +255,6 @@ class AccountCreditRecord {
|
|
|
339
255
|
}
|
|
340
256
|
}
|
|
341
257
|
exports.AccountCreditRecord = AccountCreditRecord;
|
|
342
|
-
// ============================================
|
|
343
|
-
// TYPED LINK ACCESSORS
|
|
344
|
-
// ============================================
|
|
345
|
-
/** Valid labels for Contact associations */
|
|
346
|
-
AccountCreditRecord.contactsLabels = ['Contact__AccountCredit'];
|
|
347
|
-
/** Valid labels for Invoice associations */
|
|
348
|
-
AccountCreditRecord.invoicesLabels = ['AccountCredit__Invoice'];
|
|
349
258
|
/** Type guard to check if an object is a AccountCreditRecord */
|
|
350
259
|
function isAccountCreditRecord(obj) {
|
|
351
260
|
return obj instanceof AccountCreditRecord;
|